|
|
|
| Table 8.2 Speeds of Different Animation Techniques | METHOD | PROGRAM | FRAMES/SECOND
(2 BALLS) | FRAMES/SECOND
(20 BALLS) | Cls clear
and redraw | Bounce1 | 15 | 13 | PaintPicture
save and restore | Bounce2 | 12 | 2 | SetBitmapBits
clear and redraw | Bounce1b | 36 | 27 | BitBlt save
and restore | Bounce2b | 47 | 12 |
|
|
|
|
|
|
Producing animation that works well on all sorts of computers can be tricky. Depending on the size of the images, the speed of the computer, and the other programs running on the system, it may be difficult to present the images quickly enough to provide smooth animation. |
|
|
|
|
|
|
|
|
Try the different techniques described in this chapter and select the one best suited for your application. Use the simplest technique that gives good enough performance on your system. |
|
|
|
|
|